#/usr/bin/python
# _*_ conding:UTF-8 _*_
import rrdtool
import time,psutil
total_input_traffic = psutil.net_io_counters()[1]
total_output_traffic = psutil.net_io_counters()[0]
starttime = int (time.time())
update = rrdtool.updatev('/root/project/python/rrdtoolpy/Flow.rrd','%s: %s: %s: ' % (str (starttime),str(total_input_traffic),str(total_output_traffic)))
print update
